The internal HMI device is a tool that resides in the CPU that allows to manage the shown of alphanumeric display with 7 segments present on MicroQMove series D9 and series D2 instruments.
Creates a simple interface in few time and with just a few lines QCL is using a collection of prebuilt functionality that the programmer needs only to configure, either using a range of specializations which are useful to solve those cases where the features configured fail to meet the needs of your application.
Provides 8 recursive numerical views with scrool up/down keys. Each view has a programmable letter. By setting zero in the programmable letter you have an extra digit.
In the configuration file (.CNF), the BUS section must be declared so that you have the hardware resources needed to implement the HMI device.
In the INTDEVICE section of the .CNF file must be to add the following definition:
;--------------------------------- ; Internal devices declaration ;--------------------------------- INTDEVICE .. <device_name> HMI TCamp
where:
| <device_name> | The name assigned to the device. |
| HMI | Keyword that identifies the device display management. |
| TCamp | Sample time device (1÷250 ms). |
;--------------------------------- ; Internal device declaration ;--------------------------------- INTDEVICE hmDisplay HMI 1
The HMI device manages:
| Key | Constant code |
|---|---|
| F | 16 |
| - | 32 |
| + | 4 |
| CLEAR | 8 |
| ENTER | 1 |
| Led | Constant code |
|---|---|
| L1 | 2 |
| L2 | 4 |
| L3 | 8 |
| L4 | 16 |
| F | 512 |
| AL | 1 |
The HMI device by default shown the SCREEN level (is the recursive view management).
To move to the other functions, you must scroll through the various levels with F key (must be enabled by setting to 1 the bit 14 and the bit 15 of the “enable” parameter).
Confirm the level reached by pressing the ENTER key the following navigation diagram.
![]() | |||
| … | ![]() |
||
![]() | |||
![]() |
|||
![]() | ![]() | ![]() | FUNCTIONS level |
![]() | |||
![]() | ![]() | ![]() | MENU level |
![]() | |||
![]() | ![]() | ![]() | MANUAL level |
![]() | |||
| Return to the FUNCTIONS level | |||
To exit by levels and go back to the recursive views press
for 2 seconds about.
![]() | ![]() | ![]() | ![]() PASSWORD level |
![]() | |||
![]() | ![]() | ![]() | ![]() Execution program setup |
![]() | |||
![]() | ![]() | ![]() | ![]() Execution step setting |
![]() | |||
![]() | ![]() | ![]() | ![]() Generic long setting |
![]() | |||
![]() | ![]() | ![]() | ![]() PAR03 setting |
![]() | |||
![]() | ![]() | ![]() | ![]() PAR04 setting |
![]() | |||
![]() | ![]() | ![]() | ![]() DIAGNOSTIC level. |
![]() | |||
| Return to the PASSWORD level | |||
![]() |
![]() |
| Shown value passed in MANVALUE |
![]() |
| If it was previously set to low or high |
![]() |
![]() |
![]() |
To exit from levels and return to recursive views press the
key for 2 seconds about.
![]() |
There are up to 8 recursive views that are changed using the keys 
.
The number of recursive views can be set using scnum parameter (each bit enables a view).
All these are only in view, are not entered from keyboard.
The device allows you to set the leftmost display using with sclabel1…8 parameter. By setting this value to 0, the display shows the value contained in the screen1…8 parameter to 6 digits and sign; if sclabel1…8 take the value different from 0, the visualization will be 5 digits and the sign or 6 digits without sign.
For each shown variables you can set the number of decimal digits with the scdecpt1…8 parameter.
Also with the scalpha parameter you can change the visualization in alphanumeric characters.
The alphanumeric characters are set through scdis1…7 parameters.
The scactual parameter provides the current view (each bit has a view).
N.B.:
When, in the device you try to confirm a minimum or maximum data out of bounds, the “Error” message appears for one second, then returns the introduction with the old value.
When the device, shown a exceeds data with the maximum number of shown digits, the display shows a character. The character will be:
“=” If positive visualization overflow and “=” if negative visualization overflow.
The device allows a complete alarm management.
You can force an alarm by QCL entering the following into a suitable list active alarms inside the device. You must specify which alarm you want to insert in the list with the alvalue parameter and his priority with alprior, then insert it with the SETALARM command.
The list is composed of a maximum of 20 items.
For the alarms priority is adjustable from 0÷19. The zero level is reserved to te message.
When an alarm is active, recursive visualization is overwritten with the alarm message type:
and the relative red led will light up
.
You can change views but after 7 seconds, the display will revert to show the alarm. The alarm led remain always on.
By pressing the
button for 3 sec. during the alarm message visualization, the operator can cancel the alarm. If there are more active alarms at the same time will receive the first forced to higher priority. In case of equal priority will receive the last intervened. The cancellation is always relative only to the visualized alarm.
The bit 0 of alsetting parameter, will allow to cancel with
key all alarms with one click.
The bit 1 of alsetting parameter, will allow to cancel also the messages.
The same alarm management is also used to display messages. A message behaves like a alarm only that the message consists of:
A message does not active the ALARM led, stays on for 5 sec and then disappears without pressing
key.
A message is set as an alarm but must always have zero priority.
Alarms are displayed only in recursive views. If intervene an alarm in: F1, F2, MENÙ, MAN mode or other the visualization will appear as soon as I get out of this function. Instead, the ALARM led lights immediately.
The I/O diagnostics it's accessible from the
mene described above.
If the bit 0 of the enable parameter is to 1 enables the ability to access the manual state of the device through the appropriate keystroke listed above.
If the bit 0 of the mansetting parameter is to 1 is shown the written:
where the operator can specify which axis intends to move.
The number that the operator writes is reported in axisnum parameter.
The manvalue and mandecpt parameters, allow you to specify the value to display in this state and the number of decimal places with which access respectively.
The display shows the parameters to enable “slow” movement of the axis:
or “fast” mode.
The passage and the confirmation of the parameters entered by the
key.
Jog forward and backward movements of the axis are carried out by the 
buttons.
The HMI device provides 12 SETUP variables (setup1…12) and 3 generic (par03,par04,par07) parameters.
The system also comes with 2 other generic par01 and par02 parameters that may be protected by a password chosen by the programmer and can be set with the pass01 parameter. This password can not take reserved values 100 and 123.
The first are protected with password 100 while the seconds are freely usable.
If the bit 2 of the enable parameter is to 1 enables the ability to go into SETUP mode.
After the introduction of the password (100), the device prompts you to enter the first setup parameter marked with the A letter.
With the 
keys You can cycle through the twelve variables and with the {:software:devices:hmi:hmi_03.png?nolink50|}} key to confirm the entry of a value.
If the bit 3 of the enable parameter is to 1 enables the ability to set the protected par01 and par02 parameters.
With the pressure in the sequence described in the specific paragraph, the device prompts you to enter the first parameter.
To introduce the par03…04 parameters You must enable the option setting respectively the bit 7 and 8 of the enable parameter.
If the bit 12 of the enable parameter is to 1 enables the ability to set the par07 parameter.
The par07 parameter is generic with the feature of being adjustable in any mode. For this parameter, you can also set the number of characters with nchar07, the number of decimal places with decpt07, the offset value with off07 and the following configurations with the bits of the set07 parameter:
bit 0: enables data input;
bit 1: enable the completion of the data with leading zeros (only if bit0 = 0);
bit 2: reserved;
bit 3: enables alphanumeric display;
bit 4: reserved;
bit 5: enables introduction given with exponential increase/decrease;
bit 6: disable introducing sign.
To start the introduction or the simple visualization of the par07 parameter you use the ENPAR07 command.
If the bit 13 of the enable parameter is to 1 the device provides a structure of introductions and views in order to build a calibration sequence.
The adjustment is accessible through the sequence described above.
If it's enabled the choice of calibration with the bit 0 of the tarsetting parameter to 1 shown the written:

and the operator choose the calibration to be executed. The input value is shown in the tartype parameter.
For each calibration page the system provides up to 8 long (tarvalue1…8) enabled by tarnum parameter manage to bit (one bit for each tarvalue). These values can be read and modified.
You can scroll the tarvalue parameters by using the 
keys, while it is possible to display the tarmon1 and tarmon2 parameters with the
key.
The tarmon1…2 parameters allow you to associate two read-only variables to display during calibration.
The device provides the number of introduction current calibration, both read and write access, in the taractual parameter as the following table:
0 = In introduction tartype parameter
1 = In introduction tarvalue 1 parameter
2 = In introduction tarvalue 2 parameter
3 = In introduction tarvalue 3 parameter
4 = In introduction tarvalue 4 parameter
5 = In introduction tarvalue 5 parameter
6 = In introduction tarvalue 6 parameter
7 = In introduction tarvalue 7 parameter
8 = In introduction tarvalue 8 parameter
The setting of the taractual less than 0 or greater than 8 is not allowed and the default value 1 is enforced.
You can determine whether you get one of the tarmon1 and tarmon2 parameters through the bit 1 and 2 of the tarsetting parameter.
Normally the parameters displayed on the calibration are unlabelled to distinguish them, but you can set it through dis1…7 parameters depending on the current view.
If the bit 1 of the enable parameter is to 1 you can access the memory management for the work programmes. This memory is located in serial flash. The device manage all operations to introduce the values.
Program memory is fully configurable by selecting the number of internal elements at every step (numelem from 1 to 6), and the number of steps for each program (numstep from 1 to 4096).
Automatically calculates the number of programs (numprog) (see at pag. 32 numprog parameter)
| Elements number (1÷numelem) | |
![]() | Steps number (1÷numstep) |
| Program number (automatically) | |
With press the
key and the and the choice of
menu you are prompted for dialing program.
The value entered by the operator you can read it in the proged parameter.
If the bit 0 of the prgsetting parameter is to 0 is required the introduction of step number to edit.
Shown following view:
The value entered by the operator you can read it in the steped parameter.
If the bit 0 of the prgsetting parameter ia to 1 you jump right into the introduction of the first step. Any confirmation of the data introduced will go to next item. To the last item you pass to the next step.
WIth the
key You can iterate over every step.
Just entered a new step for 2 seconds or until you press the
key shown following view:

and the steped parameter is updated with the new value of step.
If you get to the last step, you will return to first without changing program.
The elemactual parameter allows you to know which element of the step you are inserting. The elemtypef parameter lets you specify how to insert the f element.
If is 0 the f element is inserted as a single long value, While if it is including between 1 and 31 are inserted, one to one, the number of specified bits.
The elema…f elemnts are indicated with A…F letters.
If the bit 1 of the prgsetting parameter is to 1 enables the introduction of program end with the F3 key.
The introduction of the program parameter lets you specify the step number where you want to end the program. The calculation of program memory available is reduced to 4096-N programs, then:
numprog = 4096 / ((numstep * numelem * 4) + 5)
The elements of each step (elema…f) and the elemend paramenter can be read or written by selecting the program number progin and the step stepin and giving alternately the WRITESTEP and READSTEP commands.
; ;---------------------------------
;Program call command
IF gwComDisplay EQ 10
gbI = 1
gwComDisplay = 20
IF gwComDisplay EQ 20
hmi:progin = swPrgEx
hmi:stepin = gbI
hmi:stepout = 0
READSTEP hmi ;Read device command
gwComDisplay = 30
ENDIF
IF gwComDisplay EQ 30
IF hmi:stepin EQ hmi:stepout ;Wait reading executed
aslArray1[gbI] = hmi:elema
aslArray2[gbI] = hmi:elemb
aslArray3[gbI] = hmi:elemc
gbI = gbI + 1
IF gbI LE NUM_STEP
gwComDisplay = 20
ELSE
gwComDisplay = 0
ENDIF
ENDIF
ENDIF
;---------------------------------
P.S.
When, from Qview, you make a “Save data” saves all the retentive parameters of the application in a file. In the microQMove, if is present the HMI device, program memory is saved (16kbytes).
The HMI device manage:
| Key | Constant Code |
|---|---|
| F1 | 256 |
| F2 | 512 |
| F3 | 16384 |
| F4 | 32768 |
| F5 | 1048576 |
| F6 | 2097152 |
| UP | 8 |
| DOWN | 4 |
| MAN | 1024 |
| MENU | 65536 |
| . | 4194304 |
| +/- | 16 |
| 1 | 2048 |
| 2 | 4096 |
| 3 | 8192 |
| 4 | 131072 |
| 5 | 262144 |
| 6 | 524288 |
| 7 | 8388608 |
| 8 | 1 |
| 9 | 2 |
| 0 | 64 |
| CLEAR | 32 |
| ENTER | 12 |
| Led | COnstant Code |
|---|---|
| L1 | 1 |
| L2 | 2 |
| L3 | 4 |
| L4 | 8 |
| F1 | 65536 |
| F2 | 262144 |
| F3 | 524288 |
| F4 | 16384 |
| F5 | 32768 |
| F6 | 33554432 |
| MAN | 1024 |
| MENU | 16 |
| L/H | 409 |
There are up to 8 recursive views that are changed using the 
keys.
The number of recursive views can be set using scnum parameter (any bit enable a view).
All these are only in viewing, are not entered from keyboard.
The device allows you to set the leftmost display using sclabel1…8 parameter. By setting to 0 this value, the display shows the value contained in the screen1…8 parameter to 6 digits with sign; if sclabel1…8 take the value different from 0 the representation will be at 5 digits with sign or 6 digits without sign.
For each of the shown you can set the number of decimal digits with the scdecpt1…8 parameter.
Also with the scalpha parameter you can change a display at alphanumeric characters.
The alphanumeric characters are set using the scdis1…7 parameters.
The scactual parameter provides the current view number (each bit has a view).
P.S.
When, the device you try to confirm a given minimum or maximum limits allowed by the introduction, the message “Error” appears for one second, then returns the introduction with the old value.
When the device shown a data exceeds the maximum number of viewable digits, the display shows, for all the displays concerned, a character. The character will be:
“=” If positive shows overflow and “=” if negative shows overflow.
The device has a complete alarm management.
From QCL You can force an alarm by entering this in a separate list active alarms inside the device. You must specify which alarm you want to insert in the list with the alvalue parameter and the priority with alprior, then insert it with the SETALARM command.
The list is composed of up to 20 items.
For the alarms the priority is adjustable from 0÷19. The zero level is reserved for messages.
When an alarm intervenes the recursive visualization is overwritten with the alarm message type:
and the relative red led will light up
.
You will can change the view but after a time of 7 sec., the display will return to show the alarm. The alarm led will remain ON in any case.
Press the
key for 3 sec. during viewing of the alarm message, the operator can cancel the alarm. If there are multiple active alarms at the same time will receive the first forced to higher priority. In case of equal priority will be shown the last intervened. Deletion in any case is always relative only to the shown alarm.\
The bit 0 of the alsetting parameter will allow cancel with
key all alarms with one click instead of one alarm at a time.
The bit 1 of the alsetting parameter will allow cancel even the messages.
The same alarm management is also used to viewing of the messages. A message behaves like an alarm only that the message consists of: ![]()
A message does not activate the ALARM led, lasts for 5 seconds and then disappears without pressing the
key.
A message can be set as an alarm but must have always zero priority.
Alarms are shown only in recursive views. If an alarm when it is: F1, F2, MENÙ, MAN or other, the viewing will appear as soon as you exit this function. The ALARM led instead turn on right away.
The I/O diagnostics is accessible through the F1+6 sequence.
In this mode there are always four views are selectable using the 
keys.
Note
For the n°2 viewing the card L3-I17 must be present in the slot 03.
For the n°3 viewing the card L3-I17 must be present in the slot 04.
For the n°4 viewing the card H3-RV0 must be present in the slot 04.
If the bit 0 of the enable parameter is to 1 enables the access the State of the device manually by
pressing.
Pressing this button lights the corresponding led.
If the bit 0 of the mansetting parameter is to 1 is shown the written:

where the operator can specify which axis intends to move.
The number that the operator writes is shown in the axisnum parameter.
The manvalue and mandecpt parameters, allow you to specify the value to display in this state and the number of decimal digits with which viewing.
If the bit 1 of the mansetting parameter is set to 1 you log on to the state manual without key pressing.
The HMI device provides 12 SETUP variables (setup1…12) and 5 generic parameters (par03…07).
The system also comes with 2 other generic par01 and par02 parameters that may be protected by a password chosen by the programmer and can be set with the pass01 parameter. This password cannot take reserved 100 and 123 values.
The first are password protected 100 while the latter are usable freely.
If the bit 2 of the enable parameter is to 1 is enabled the SETUP input mode.
By pressing the keys in sequence F1 + 0 + 100 the device requires you to enter the first setup parameter marked by letter A.
With the arrow keys you can cycle through the twelve setup variables and with the ENTER key confirm the entry of a value.
If the bit 3 of the enable parameter is to 1 is enabled the setting of protected par01 and par02 parameters.
By pressing the F1 + 0 + XXX keys in sequence, where XXX is the password chosen by the operator, the device requires you to enter the first parameter.
To introduce the par03…06 parameters you must enable the option setting respectively the bit 7, 8, 10, 11 of the enable parameter.
The par03 parameter is inserted by the F1 + 4 combination.
The par04 parameter is inserted by the F1 + 5 combination.
The par05 parameter is inserted by the F2 + 4 combination.
The par06 parameter is inserted by the F2 + 5 combination.
If the bit 12 of the enable parameter is to 1 is enabled the settingof the par07 parameter.
The par07 is a generic parameter with the characteristic of being adjustable in any mode. For this parameter, you can also set the number of characters with nchar07, the number of decimal digits with decpt07, the offset value with off07 and the following configurations with the bits of the set07 parameter:
bit 0: enables data input;
bit 1: enable the completion of the data with leading zeros (only if bit 0 = 0);
bit 3: enables alphanumeric display;
bit 4: disable the hold button release.
To start the introduction or the simple viewing of par07 parameter you use the ENPAR07 command.
If the bit 13 of the enable parameter is to 1 the device provides a structure of introductions and views in order to build a calibration sequence.
The adjustment is accessible through the sequence F1 + 0 + 123.
When enabled the choice of calibration with the bit 0 of the tarsetting parameter to 1 shown the written:

and the operator choose the calibration to be execute. The input value is shown in the tartype parameter.
For each calibration page the system provides up to 8 long (tarvalue1…8) enabling from the tarnum parameter manage to bit (one bit for each tarvalue). These values can be read and modified.
You can scroll the tarvalue parameters by using the 
keys while it is possible to display the tarmon1 parameter with F5 key and the tarmon2 paramter with F6 key.
Also you can attach two variables to watch during the calibration stage with two tarmon1…2 parameters only in reading mode.
The device provides the number of introduction current calibration, both reading and writing, in the taractual parameter as to the following table:
0 = In introduction tartype parameter
1 = In introduction tarvalue 1 parameter
2 = In introduction tarvalue 2 parameter
3 = In introduction tarvalue 3 parameter
4 = In introduction tarvalue 4 parameter
5 = In introduction tarvalue 5 parameter
6 = In introduction tarvalue 6 parameter
7 = In introduction tarvalue 7 parameter
8 = In introduction tarvalue 8 parameter
The setting of taractual minor to 0 or greater of 8 is not allowed and the default value is enforced to 1.
You can determine whether you get one of the two tarmon1 and tarmon2 parameters through the bit 1 and 2 of the tarsetting paramter.
Normally the parameters viewing on the calibration are unlabelled to distinguish them from each other, but you can set it through the dis1…7 parameters depending on the current view.
If the bit 1 of the enable paramteris to 1 you can access the memory management for the work programmes. This memory is located in serial flash. The device manage all operations to introduce the values.
Program memory is fully configurable by selecting the number of internal elements at every step (numelem from 1 to 6), and the number of steps for each program (numstep from 1 to 4096).
Automatically calculates the number of programs (numprog) (see to page 32 numprog parameter)
| Elements number (1÷numelem) | |
![]() | Steps number (1÷numstep) |
| Program number (automatically) | |
With key pressing and choosing the
menù are requested the selection of the program number.

The value entered by the operator you can read it in the proged parameter.
If the bit 0 of the prgsetting parameter is to 0 is request the introduction of step number to edit.
Shown the viewing:

The value entered by the operator you can read it in the steped parameter.
If the bit 0 of the prgsetting parameter is to 1 you jump right into the introduction of the first step. Any confirmation of the data introduced will go to next item. The last item you pass to the next step.
With the 
keys you can choose over every step.
Just entered a new step for 2 seconds or until you press the ENTER key to compare the viewing:

and the steped parameter is updated with the new value of step.
When I get to the end of the last step, return to first step without changing program.
The elemactual parameter allows you to know which element of the step you are inserting. The elemtypef parameter lets you specify how to insert the f element.
If is 0 the f element is placed as the only long value, while if it is between 1 and 31 are placed, one by one, the number of bits specified.
The elema…f elements are indicated with A…F letters.
If the bit 1 of the prgsetting parameter is to 1 enables the introduction of program end with F3 key.
The introduction of the end program allows you to specify the step number to which you want to end the program. The calculation of program memory available is reduced to 4096-N programs, then:\\numprog = 4096 / ((numstep * numelem * 4) + 5)
The elements of each step (elema…f) and the elemend parameter can be read or written by selecting the program number progin and the step stepin and giving alternately WRITESTEP and READSTEP commands.
;------------------------------------
;Program call command
IF gwComDisplay EQ 10
gbI = 1
gwComDisplay = 20
IF gwComDisplay EQ 20
hmi:progin = swPrgEx
hmi:stepin = gbI
hmi:stepout = 0
READSTEP hmi ;Reading device command
gwComDisplay = 30
ENDIF
IF gwComDisplay EQ 30
IF hmi:stepin EQ hmi:stepout ;Wait for read executing
aslArray1[gbI] = hmi:elema
aslArray2[gbI] = hmi:elemb
aslArray3[gbI] = hmi:elemc
gbI = gbI + 1
IF gbI LE NUM_STEP
gwComDisplay = 20
ELSE
gwComDisplay = 0
ENDIF
ENDIF
ENDIF
;------------------------------------
Note When, from Qview, making a “Save data” saves all the retentive parameters of the application in a file. In the microQMove, if there is HMI device, it also saves the program memory (16kbytes).
![]() | ![]() | 100 | Introduction of 12 setup parameters. The values are shown on the setup01..12 parameters |
||
| 123 | Calibration | ||||
| XXX | Introduction of 2 generic par01 and par02 parameters. The password can be set with the pass01 parameter. |
||||
![]() | Choice number of running program.![]() |
||||
![]() | Choice number of step running.![]() |
||||
![]() | Empty introduction, you can print a string writing dis1..7 parameter “ “ |
||||
![]() | Introduction of a generic long on the par03 parameter.![]() |
||||
![]() | Introduction of a generic long on the par04 parameter.![]() |
||||
![]() | I/O diagnostics. | ![]() | |||
![]() |
|||||
![]() | ![]() | Introduction of a generic long on the par05 parameter.![]() |
|||
![]() | Introduction of a generic long on the par05 parameter.![]() |
||||
The following block diagram summarizes the steps that you can run directly from the keyboard instrument. These steps, however, can be implemented also by QCL.
N.B. To exit from each of these steps and return to the views you need to use the recursive EXIT command.
| Decimal value to be introduced\ in: scdis1…7 sclabel1…7 dis1…7 | 7 segments character | Decimal value to be introduced in: scdis1…7 sclabel1…7 dis1…7 | 7 segments character | Decimal value to be introduced in: scdis1…7 sclabel1…7 dis1…7 | 7 segments character | Decimal value to be introduced in: scdis1…7 sclabel1…7 dis1…7 | 7 segments character |
|---|---|---|---|---|---|---|---|
| 0 | 14 | 28 | 42 | ||||
| 1 | 15 | 29 | 43 | ||||
| 2 | 16 | 30 | 44 | ||||
| 3 | 17 | 31 | 45 | ||||
| 4 | 18 | 32 | 46 | ||||
| 5 | 19 | 33 | 47 | ||||
| 6 | 20 | 34 | 48 | ||||
| 7 | 21 | 35 | 49 | ||||
| 8 | 22 | 36 | 50 | ||||
| 9 | 23 | 37 | 51 | ||||
| 10 | 24 | 38 | 52 | ||||
| 11 | 25 | 39 | 53 | ||||
| 12 | 26 | 40 | 54 | ||||
| 13 | 27 | 41 | 55 |
Il nome del parametro, stato o comando è riportato alla sinistra della tabella.
R
Indica se il relativo parametro o stato è ritentivo (al momento dellinizializzazione del device mantiene lo stato precedentemente
definito), oppure lo stato che assume al momento dellinizializzazione del device.
Se il device non necessita d'inizializzazione il campo R indica il valore che il parametro o stato assume allaccensione
della scheda.
R = Ritentivo
0 = Al momento dellinizializzazione del device il valore è forzato a zero.
1 = Al momento dellinizializzazione del device il valore è forzato a uno.
- = Al momento dellinizializzazione del device è presentato il valore significativo.
D
Indica la dimensione del parametro.
F = Flag
B = Byte
W = Word
L = Long
S = Single Float
Sono descritte tutte le condizioni necessarie affinché il parametro sia considerato corretto o perché il comando sia accettato.
In alcuni casi sono specificati dei valori limite per laccettazione del parametro: se sono introdotti dei valori esterni ai limiti
impostati, il dato è in ogni caso accettato; pertanto devono essere previsti opportuni controlli dellapplicativo tali da garantire
il corretto funzionamento.
Per lesecuzione di un comando, tutte le relative condizioni devono necessariamente essere soddisfatte; in caso contrario
il comando non è inviato.
A
Indica il modo d'accesso.
R = Read (lettura).
W = Write (scrittura).
RW = Read / Write.
| Nome | Condizioni | Descrizione |
|---|---|---|
| SETALARM | - | SETTING a new ALARM Con questo comando allarme è possibile forzare un nuovo allarme. Se l'allarme è giá in lista con la medesima prioritá esso non verrá forzato. Se invece la prioritá è diversa essa verrá aggiornata. |
| CLRALARM | - | CLEAR ALARM Come la pressione del tasto CLEAR per 3 sec. Azzera gli allarmi presenti. |
| READSTEP | - | ReadStep Consente la lettura del passo selezionato in stepin. |
| WRITESTEP | - | WriteStep Consente la scrittura del passo selezionato in stepin. |
| ENPAR07 | status = 0 | Enter on par07 Permette di forzare l'introduzione del parametro par07 oppure di visualizzarlo. Nel caso dell'introduzione del parametro compare sempre la label “i”. . |
| EXIT | - | Exit from procedure Permette di uscire da qualsiasi procedura e tornare alle visualizzazioni ricorsive. |
| CMD01 | - | Available command for future implementations Comando disponibile per future implementazioni. |
| CMD02 | - | Available command for future implementations Comando disponibile per future implementazioni. |
| Nome | D | R | A | Condizioni | Descrizione |
|---|---|---|---|---|---|
| key | L | - | R | - | Key Rappresenta in ogni istante lo stato dei tasti. Ogni tasto è rappresentato da un bit. Per l'assegnazione dei bit fare riferimento alla tabella presente nel capitolo dedicato. |
| leds | L | 0 | R/W | - | Leds status Rappresenta in ogni istante lo stato dei leds tastiera. Questa variabile può essere modificata anche da device quando vengono eseguite operazioni nella tastiera. Per l'assegnazione dei bit fare riferimento alla tabella presente nel capitolo dedicato. |
| blinkleds | L | 0 | R/W | - | Blink leds status Rappresenta in ogni istante lo stato del blink nel led tastiera. Questa variabile può essere modificata anche da device quando vengono eseguite operazioni nella tastiera. La mappatura dei bit rispecchia quella del parametro leds. Perchè un led lampeggi esso deve essere attivato dalla variabile leds. Il tempo di blink è fissato a 300 ms ON e 700 ms OFF. |
| dis1…7 | B | - | R/W | - | Display position 1…7 Rappresenta il contenuto attuale del display nella posizione 1…7. Dis1 è il display più a destra e dis7 è quello più a sinistra. |
| blinkdis | B | 0 | R/W | - | Blink display E' una variabile a bit per abilitare il blink su un carattere. Ogni bit è un carattere. Il bit meno significativo è associato al display più a destra. |
| screen1…8 | L | 0 | R/W | - | Screen 1…8 value E' il valore della visualizzazione ricorsiva nr. 1…8 |
| sclabel1…8 | B | 0 | R/W | - | Label for screen 1…8 E' il valore della cifra più a sinistra della visualizzazione ricorsiva nr. 1…8. Se si imposta a zero, tutto il display è utilizzato per il valore numerico stampando un valore a 6 cifre più il segno. Se il valore è diverso da zero la rappresentazione sarà a 5 cifre più il segno o 6 cifre senza segno. |
| scdecpt1…8 | B | 0 | R/W | - | Decimal point for screen 1…8 E' il valore del punto decimale per la visualizzazione nr. 1…8. Range valido: 0 ÷ 3 |
| scnum | B | R | R/W | - | Number of screen E' il numero di visualizzazioni abilitate. E' gestita a bit. Bit 0 = screen1, bit 1 = screen2… ecc. |
| scactual | B | 0 | R/W | - | Actual screen La lettura fornisce il numero della visualizzazione attuale, in scrittura consente di impostare il numero della visualizzazione attuale. 0 = screen1, 1 = screen2… ecc. Range valido: 0 ÷ 7 |
| scalpha | B | 0 | R/W | - | Screen in alpha mode Abilita la visualizzazione in alpha mode. In questa modalità sul display compare quanto contenuto nei parametri scdis1…8. Bit 0 = screen1, bit 1 = screen2… ecc.” |
| scdis1…7 | B | 0 | R/W | - | Screen display 1…7 Rappresenta il contenuto del display durante la visualizzazione ricorsiva in alpha mode. |
| alvalue | B | 0 | R/W | - | Alarm value (1 ÷ 99) E' il valore dell'allarme da inserire con il comando SETALARM. |
| alprior | B | 0 | R/W | - | Alarm priority (1 ÷ 99) E' il valore della priorità dell'allarme da inserire con il comando SETALARM. |
| alsetting | B | 0 | R/W | - | Alarm setting Il bit zero, se attivo, permetterà di cancellare con il tasto CLEAR (o con il comando CLRALARM) tutti gli allarmi con una sola pressione invece che uno alla volta. Il bit 1 serve per decidere come funziona il tasto CLEAR quando cancella tutti gli allarmi: 0: cancella solo gli allarmi e non i messaggi; 1: cancella tutto. |
| mansetting | B | 0 | R/W | - | Setting manual Il bit 0, se settato, abilita la selezione dell'asse in movimentazione. Il bit 1, se settato, comanda l'ingresso in manuale senza la pressione del tasto MAN. |
| axisnum | B | 0 | R/W | - | Axe number Nel caso sia abilitata la selezione dell'asse indica l'asse da movimentare. |
| manvalue | L | 0 | R/W | - | Manual value E' il valore visualizzato durante la movimentazione. |
| mandecpt | B | 0 | R/W | - | Manual decimal point (0 ÷ 3) E' il numero di cifre decimali durante la visualizzazione di manvalue. |
| taractual | B | 0 | R/W | - | Actual tarature Indica il numero dell'introduzione corrente. |
| tardecpt | B | 0 | R/W | - | Tarature decimal point. (0 ÷ 3) E' il numero di cifre decimali durante la visualizzazione dei tarvalue. E'possibile modificarlo a seconda del valore di taractual tramite QCL. Il range è compreso tra 0 e 3. |
| tarsetting | B | 0 | R/W | - | Setting tarature Il bit 0 abilita la selezione della taratura. Il bit 1 indica che la taratura sta visualizzando il monitor 1. Il bit 2 indica che la taratura sta visualizzando il monitor 2. |
| tartype | B | 0 | R/W | - | Tarature type Indica la taratura scelta dall'operatore nella prima visualizzazione (se abilitata). |
| tarnum | B | 0 | R/W | - | Tarature number Indica il numero di introduzioni abilitate gestita a bit. Bit 0 = tarvalue1, bit 1 = tarvalue2… ecc. |
| tarvalue1…8 | L | 0 | R/W | - | Tarature value 1…8 E' uno degi 8 valori visualizzati durante la taratura. |
| tarmon1…2 | L | 0 | R/W | - | Tarature monitor 1…2 Solo per serie D9 Queste due long contengono il valore visualizzato dalla procedura alla pressione rispettiva dei tasti F5 e F6. Al tasto F5 è associata la variabile “tarmon1”. Al tasto F6 è associata la variabile “tarmon2”. Il led associato al tasto F5 si accende quando si sta visualizzando tarmon1, idem per il led F6. |
| taractual | B | 0 | R/W | - | Actual tarature Indica il numero dell'introduzione corrente. |
| numelem | B | R | R/W | - | Element number (1 ÷ 6) Indica il numero di elementi all'interno di un passo. |
| numstep | W | R | R/W | - | Step number (1 ÷ 4096) Indica il numero di passi in ogni programma. |
| numprog | W | - | R | - | Program number Indica il numero di programmi disponibili. Il valore è ricavato dal numero di long in memoria programmi, dal parametro “numelem” e dal “numstep”. Se viene abilitata l'introduzione del fine programma, impostando il bit 1 della variabile “prgsetting” a 1, il numero di programmi disponibili si calcola: numprog = 4096 /(numstep * numelem + 1). Se non viene abilitata l'introduzione del fine programma, impostando il bit 1 della variabile “prgsetting” a 0, il numero di programmi disponibili si calcola: numprog = 4096 /(numstep * numelem). |
| proged | W | 0 | R | - | Program edit Programma in introduzione nella memoria programmi. |
| steped | W | 0 | R | - | Step edit Passo in introduzione nella memoria programmi. |
| progin | W | 0 | R/W | - | Program input Indica il numero del programma da memorizzare con il comando WRITESTEP o leggere con il comando READSTEP. |
| stepin | W | 0 | R/W | - | Step input Indica il numero del passo da memorizzare con il comando WRITESTEP o leggere con il comando READSTEP. |
| stepout | W | 0 | R/W | - | Step output Indica che il passo scritto è stato memorizzato, oppure che il passo in lettura è disponibile. Per verificare che il comando inviato (WRITESTEP o READSTEP) è stato eseguito è necessario controllare che stepin si uguale a stepout. |
| elema…f | L | 0 | R/W | - | Element A…F Sono i valori del passo utilizzati con i comandi READSTEP e WRITESTEP. |
| elemtypef | B | 0 | R/W | - | Type of element f Se impostata a zero l'elemento f è una long (come gli altri elementi). Se impostata diversa da zero indica il numero di flags che vengono introdotti sul parametro elemf. Range valido: 0 ÷ 31 |
| elemend | B | 0 | R/W | - | Elements for end program E' il valore del passo di fine programma, se abilitato, leggibile e scrivibile con i comandi READSTEP e WRITESTEP. |
| elemdecpt | B | - | R/W | - | Element decimal point (0 ÷ 3) E' il numero di cifre decimali durante la visualizzazione degli elementi. E' possibile modificarlo a seconda del valore di elemactual tramite QCL. |
| elemactual | B | 0 | R | - | Actual element Indica l'introduzione attiva: 0: fuori dal menù; 1: introduzione programma; 2: introduzione passo; 3: in introduzione elema 4: in introduzione elemb 5: in introduzione elemc 6: in introduzione elemd 7: in introduzione eleme 8: in introduzione elemf Se il parametro elemtypef è > 0 e < 32; elemactual, nel parametro elemf va da 8 a 38. 39: in introduzione fine programma (tasto F3 solo D9). Questa introduzione è accessibile solo se il bit 1 del parametro ”“prgsetting”“ è uguale a 1. |
| prgsetting | B | 0 | R/W | - | Setting program data-entry Il bit 0 abilita la selezione del passo quando si entra nel menù programmi. Altrimenti l'introduzione entra nel passo 1. Il bit 1 abilita l'introduzione del fine programma. Quando questo bit è a 1, il numero di programmi disponibili diventa “numprog = 4096 / (numstep * numelem + 1)”. Se il bit 1 è a 0 il numero di programmi disponibili diventa “numprog = 4096 / (numstep * numelem)”. |
| setup01…12 | L | R | R/W | - | Setup 01…12 Valore dei parametri di setup. |
| par01…07 | L | R | R/W | - | Parameter 01…07 Valore dei parametri generici. |
| nchar07 | B | 0 | R/W | - | Char number for parameter 07 Indica il numero di caratteri per il parametro 07. Range valido: 1 ÷ 7 |
| off07 | B | 0 | R/W | - | Offset for parameter 07 Indica il valore di offset per il parametro 07. Range valido: 0 ÷ 6 |
| decpt07 | B | 0 | R/W | - | Decimal point for parameter 07 Indica il numero di cifre decimali per il parametro 07. Range valido: 0 ÷ 3 |
| set07 | B | 0 | R/W | - | Flags parameter 07 Bit 0: abilita l'introduzione dati; bit 1: abilita il leading zero blank (solo se bit 0 = 0); bit 2: riservato; bit 3: abilita la visualizzazione in alpha mode; bit 4: disabilita l'attesa rilascio tasto(solo D9). Solo per D2 bit 5: abilita l'introduzione con up/down esponenziale; bit 6: disabilta l'introduzione segno. |
| pass01 | W | R | R/W | - | Password for F + 0 Contiene il valore da introdurre in F1 + 0 + password per accedere ai parametri par01 - par02. Non può assumere i valori riservati 123 e 100. |
| progex | W | R | R | - | Program in execution Indica il programma in esecuzione (scelto con F1+1). Range valido: 1 ÷ numprog |
| stepex | W | R | R | - | Step in execution Indica il passo in esecuzione (scelto con F1+2). Range valido: 1 ÷ numstep |
| status | B | 0 | R | - | Status Indica lo stato della visualizzazione. E' una variabile gestita a bit. Bit 0: se 1 significa che è premuto un tasto numerico nella tastiera e lostrumento si trova nelle visualizzazioni ricorsive; bit 1: significa che sto visualizzando un allarme; bit 2: significa che sto visualizzando un messaggio. |
| destatus | W | 0 | R | - | Data-entry status Indica lo stato dello strumento: Per serie D2 00: in visualizzazioni ricorsive; 01: in visualizzazione allarmi; 02: in movimentazione manuale; 03: in introduzione programmi; 04: riservato; 05: in introduzione password; 06: in setup; 07: in introduzione parametri par01 e par02; 08: in taratura (password 123); 09: in scelta programma da porre in esecuzione; 10: in scelta passo da porre in esecuzione; 11: 12: in introduzione parametro par03; 13: in introduzione parametro par04; 14: in diagnostica I/O; 15: in scelta livello 1; 16: in scelta livello 2; 17: in introduzione parametro par07; Per serie D9 00: in visualizzazioni ricorsive; 01: in visualizzazione allarmi; 02: in movimentazione manuale; 03: in introduzione programmi; 04: in scelta funzione F1; 05: in introduzione password; 06: in setup; 07: in introduzione parametri par01 e par02; 08: in taratura (password 123); 09: in scelta programma da porre in esecuzione; 10: in scelta passo da porre in esecuzione; 11: in introduzione vuota (F1 + 3); 12: in introduzione parametro par03; 13: in introduzione parametro par04; 14: in diagnostica I/O; 15: in scelta funzione F2; 16: in introduzione parametro par05; 17: in introduzione parametro par06; 18: in introduzione parametro par07; 19: riservato. |
| enable | W | 0 | R/W | - | Enable Abilita le seguenti funzionalità: Per serie D2 bit 0: movimenti manuali; bit 1: menù; bit 2: setup; bit 3: introduzione parametri par01 e par02; bit 4: introduzione programma in esecuzione; bit 5: introduzione passo in esecuzione; bit 6: bit 7: introduzione parametro par03; bit 8: introduzione parametro par04; bit 9: diagnostica; bit 10: riservato; bit 11: riservato; bit 12: introdurre con par07; bit 13: taratura; bit 14: tasto F; bit 15: abilitazione livello 1; Per serie D9 bit 0: movimenti manuali; bit 1: menù; bit 2: setup; bit 3: introduzione parametri par01 e par02; bit 4: introduzione programma in esecuzione; bit 5: introduzione passo in esecuzione; bit 6: introduzione F1 + 3; bit 7: introduzione parametro par03 (F1 + 4); bit 8: introduzione parametro par04 (F1 + 5); bit 9: diagnostica(F1 + 6); bit 10: parametro par05 (F2 + 4); bit 11: parametro par06 (F2 + 5); bit 12: introdurre con par07; bit 13: taratura; bit 14: tasto F1; bit 15: tasto F2. |
| modified | W | 0 | R/W | - | Modified input E' una variabile gestita a bit che indica se durante le introduzioni sono stati modificati alcuni dati. Bit 0: Bit 1: modificati dati in elema…f o elemend; Bit 2: modificati dati in setup01…setup12; Bit 3: modificati dati in par01 o par02; Bit 4: modificati dati in progex; Bit 5: modificati dati in stepex; Bit 6: Bit 7: modificati dati in par03; Bit 8: modificati dati in par04; Bit 9: Bit 10: modificati dati in par05 (solo serie D9); Bit 11: modificati dati in par06 (solo serie D9); Bit 12: modificati dati in par07; Bit 13: Bit 14: modificati dati in taratura; Bit 15: |
| par01 | L | - | R/W | - | Available variable for future implementation Variabile disponibile per future implementazioni. |
| par02 | L | - | R/W | - | Available variable for future implementation Variabile disponibile per future implementazioni. |
| Nome | D | R | A | Condizioni | Descrizione |
|---|---|---|---|---|---|
| st_alfull | B | 0 | R | - | Buffer alarm full Segnalazione di buffer allarmi pieno. Lo stato viene sempre aggiornato a seguito di un comando SETALARM oppure quando l'operatore preme il tasto CLEAR. 0 = buffer non pieno. 1 = buffer pieno. |
| st_alactive | B | 0 | R | - | Alarm active Segnalazione di allarme attivo. 0 = non vi sono allarmi. 1 = almeno un allarme è attivo. |
| st_alset | B | 0 | R | - | Alarm setted Impostato ad uno quando l'allarme viene settato e azzerato con il comando SETALARM. |
| st_alclear | B | 0 | R | - | Alarm cleared Impostato ad uno quando l'allarme viene cancellato e azzerato con il comando CLRALARM. |
| st_manfw | B | 0 | R | - | Manual forward Segnalazione di asse in manuale avanti (pressione del tasto 3 in manuale): 0 = asse fermo. 1 = asse in manuale avanti. |
| st_manbw | B | 0 | R | - | Manual backward Segnalazione di asse fin manuale indietro (pressione del tasto 1 in manuale): 0 = asse fermo. 1 = asse in manuale indietro. |
| st_slow | B | 0 | R | - | Slow Segnalazione della velocità di movimento dell'asse: 0 = è selezionata la velocità normale. 1 = è selezionata la velocità lenta. All'accensione per default viene caricato il valore 1. |
| st_001 | F | 0 | R | - | Available status for future implementation Stato disponibile per future implementazioni. |
| st_002 | F | 0 | R | - | Available status for future implementation Stato disponibile per future implementazioni. |
L'operazione di scrittura tramite il comando WRITESTEP deve essere eseguita tenendo conto che a causa del componente
di memoria utilizzato (Flash Eprom seriale) tale operazione risulta onerosa dal punto di vista del tempo utilizzato.
Infatti il tempo utilizzato è variabile da 512 a 1024 volte il tempo di campionamento associato device HMI. Quindi questo
tipo di memoria può essere utilizzato per contenere dei dati che possono essere variati dall'operatore con tempistiche relativamente
lente. Sicuramente non è una memoria utilizzabile per contenere dati che devono essere scritti con una alta
frequenza. In ogni caso l'operazione di scrittura viene eseguita con una modalità in background e non pregiudica le prestazioni
della CPU nel gestire il resto dei device e dell'applicativo.
Per esempio se il tempo di campionamento associato al device è di 6 ms, il tempo per eseguire una scrittura nel device
può andare da circa 3 a 6 secondi. Il parametro stepout diventa uguale a stepin dopo questo tempo.
Inoltre il tipo di memoria utilizzato garantisce un numero di scritture pari a 100000. Anche per questo si deve evitare di
scrivere dei programmi che scrivino in modo continuo sulla memoria utilizzando il comando WRITESTEP.
; Project :
; Module Name : DISPLAY
; Author :
; Date :
; Time :
; Description : Gestore dei comandi verso il display
;---------------------------------------------
;Inizializzazione del device hmi
hmi:numelem = 6 ;numero di elementi per passo
hmi:numstep = 5 ;numero di passi
hmi:tarsetting = 1 ;selezione delle taratura abilitata
hmi:alsetting = 1 ;Cancellazione di tutti gli allarmi con CLEAR
hmi:enable = 1 + 2 + 4 + 16 + 512 + 4096 + 8192 + 16384 ;Varie abilitazioni
MAIN:
WAIT gwComDisplay
;-----------------------------------
;Comando inserimento parametro 07
IF gwComDisplay EQ INS_PAR_07
hmi:nchar07 = 6 ;numero di caratteri per inserimento
hmi:off07 = 0 ;nessun offset sulla posizione
hmi:decpt07 = 0 ;numero di cifre decimali
hmi:set07 = 1 ;abilita il dataentry
ENPAR07 hmi
gwComDisplay = INS_PAR_07 + 1
ENDIF
IF gwComDisplay EQ (INS_PAR_07 + 1)
IF hmi:destatus EQ 18 ;Attesa comando ENPAR07 eseguito
gwComDisplay = INS_PAR_07 + 2
ENDIF
ENDIF
IF gwComDisplay EQ (INS_PAR_07 + 2)
IF NOT(hmi:destatus EQ 18) ;Attesa uscita dall'inserimento del par07
gwComDisplay = 0 ;Parametro 07 inserito
ENDIF
ENDIF
;-----------------------------------
;Comando visualizzazione messaggio con parametro 07
IF gwComDisplay EQ VIS_PAR_07
hmi:nchar07 = 7 ;numero di caratteri per inserimento
hmi:off07 = 0 ;nessun offset sulla posizione
hmi:set07 = 8 ;Visualizzazione alfanumerica + read only
ENPAR07 hmi
gwComDisplay = VIS_PAR_07 + 1
ENDIF
IF gwComDisplay EQ (VIS_PAR_07 + 1)
IF hmi:destatus EQ 18 ;Attesa comando ENPAR07 eseguito
hmi:dis7 = 10 ;A
hmi:dis6 = 26 ;U
hmi:dis5 = 25 ;t
hmi:dis4 = 21 ;o
hmi:dis3 = 35 ;(space)
hmi:dis2 = 35 ;(space)
hmi:dis1 = 35 ;(space)
gwComDisplay = VIS_PAR_07 + 2
tmVisMsg = 100
ENDIF
ENDIF
IF gwComDisplay EQ (VIS_PAR_07 + 2)
IF tmVisMsg
tmVisMsg = 1500
gwComDisplay = VIS_PAR_07 + 3
ENDIF
ENDIF
IF gwComDisplay EQ (VIS_PAR_07 + 3)
IF tmVisMsg OR (hmi:key EQ KEY_ENT) ;Tempo scaduto o pressione di ENTER
gwComDisplay = 0
EXIT hmi ;uscita dalla visualizzazione par07
ENDIF
ENDIF
;-----------------------------------
;Comando richiamo del programma
IF gwComDisplay EQ RIC_PRG
gbI = 1
gwComDisplay = RIC_PRG + 1
ENDIF
IF gwComDisplay EQ (RIC_PRG + 1)
hmi:progin = swPrgEx
hmi:stepin = gbI
hmi:stepout = 0
READSTEP hmi ;Comando lettura del device
gwComDisplay = RIC_PRG + 2
ENDIF
IF gwComDisplay EQ (RIC_PRG + 2)
IF hmi:stepin EQ hmi:stepout ;Attesa lettura avvenuta
aslLungh[gbI] = hmi:elema
aslRipet[gbI] = hmi:elemb
asbVel[gbI] = hmi:elemc
gbI = gbI + 1
IF gbI LE NUM_STEP
gwComDisplay = RIC_PRG + 1
ELSE
gwComDisplay = 0
ENDIF
ENDIF
ENDIF
;-----------------------------------
;Comando impostazione visualizzazioni ricorsive per automatico
IF gwComDisplay EQ VIS_AUTO
;Impostazioni HMI
hmi:enable = hmi:enable ANDB (-1-8192) ;Disabilita taratura
hmi:enable = hmi:enable ANDB (-1-16) ;Disabilita scelta programma
hmi:enable = hmi:enable ANDB (-1-4) ;Disabilita setup
hmi:enable = hmi:enable ANDB (-1-2) ;Disabilita programmazione
hmi:enable = hmi:enable ANDB (-1-1) ;Disabilita manuale
hmi:leds = hmi:leds ORB LED_1 ;Accensione led automatico
hmi:blinkleds = hmi:blinkleds ANDB (-1-LED_1) ;Spegnimento lampeggio led
hmi:scnum = 127 ;un bit per ogni visualizzazione abilitata
hmi:sclabel1 = CH_Q ;Quota asse
hmi:scdecpt1 = 1
hmi:sclabel2 = CH_L ;Passo in esecuzione (linea)
hmi:scdecpt2 = 0
hmi:sclabel3 = CH_P ;Programma in esecuzione
hmi:scdecpt3 = 0
hmi:sclabel4 = CH_S ;Numero di pezzi programmati
hmi:scdecpt4 = 0
hmi:sclabel5 = CH_D ;Numero di pezzi fatti (Done)
hmi:scdecpt5 = 0
hmi:sclabel6 = CH_R ;Numero di pezzi rimanenti (Remain)
hmi:scdecpt6 = 0
hmi:sclabel7 = CH_C ;numero di ripetizioni del passo in corso
hmi:scdecpt7 = 0
;Messaggio: "Auto"
gwComDisplay = VIS_PAR_07
ENDIF
;-----------------------------------
;Comando impostazione visualizzazioni ricorsive per automatico
IF gwComDisplay EQ VIS_SEMIAUTO
;Impostazioni HMI
hmi:enable = hmi:enable ANDB (-1-8192) ;Disabilita taratura
hmi:enable = hmi:enable ANDB (-1-16) ;Disabilita scelta programma
hmi:enable = hmi:enable ANDB (-1-4) ;Disabilita setup
hmi:enable = hmi:enable ANDB (-1-2) ;Disabilita programmazione
hmi:enable = hmi:enable ANDB (-1-1) ;Disabilita manuale
hmi:leds = hmi:leds ORB LED_1 ;Accensione led automatico
hmi:blinkleds = hmi:blinkleds ORB LED_1 ;Lampeggio led automatico
hmi:scnum = 127 ;un bit per ogni visualizzazione abilitata
hmi:sclabel1 = CH_Q ;Quota asse
hmi:scdecpt1 = 1
hmi:sclabel2 = CH_L ;Passo in esecuzione (linea)
hmi:scdecpt2 = 0
hmi:sclabel3 = CH_P ;Programma in esecuzione
hmi:scdecpt3 = 0
hmi:sclabel4 = CH_S ;Numero di pezzi programmati
hmi:scdecpt4 = 0
hmi:sclabel5 = CH_D ;Numero di pezzi fatti (Done)
hmi:scdecpt5 = 0
hmi:sclabel6 = CH_R ;Numero di pezzi rimanenti (Remain)
hmi:scdecpt6 = 0
hmi:sclabel7 = CH_C ;numero di ripetizioni del passo in corso
hmi:scdecpt7 = 0
ENDIF
;-----------------------------------
;Comando impostazione visualizzazioni per manuale
IF gwComDisplay EQ VIS_MAN
;Impostazioni HMI
hmi:leds = hmi:leds ANDB (-1 - LED_1) ;Spegnimento led automatico
hmi:manvalue = anAvanz1:posit ;Valore visualizzato
hmi:mandecpt = 1 ;Cifre decimali
hmi:mansetting = 0 ;nessuna selezione asse (unico)
gwComDisplay = 0
ENDIF
;-----------------------------------
;Comando impostazione programmi di lavoro
IF gwComDisplay EQ VIS_PROG
;Impostazioni HMI
hmi:elemtypef = 2 ;numero di bit dell'elemf
hmi:prgsetting = 1 ;abilita la selezione del passo
gwComDisplay = 0
ENDIF
;-----------------------------------
;Comando impostazione visualizzazioni ricorsive di standby
IF gwComDisplay EQ VIS_STANDBY
;Impostazioni HMI
hmi:enable = hmi:enable ORB 8192 ;Abilita taratura
hmi:enable = hmi:enable ORB 16 ;Abilita scelta programma
hmi:enable = hmi:enable ORB 4 ;Abilita setup
hmi:enable = hmi:enable ORB 2 ;Abilita introduzione programmi
hmi:enable = hmi:enable ORB 1 ;Abilita manuale
hmi:leds = hmi:leds ANDB (-1-LED_1-LED_2-LED_3-LED_4) ;Tutti i LED spenti
hmi:leds = hmi:leds ANDB (-1-LED_F3)
hmi:scnum = 127 ;un bit per ogni visualizzazione abilitata
hmi:sclabel1 = CH_Q ;Quota asse
hmi:scdecpt1 = 1
hmi:sclabel2 = CH_L ;Passo in esecuzione (linea)
hmi:scdecpt2 = 0
hmi:sclabel3 = CH_P ;Programma in esecuzione
hmi:scdecpt3 = 0
hmi:sclabel4 = CH_S ;Numero di pezzi programmati
hmi:scdecpt4 = 0
hmi:sclabel5 = CH_D ;Numero di pezzi fatti (Done)
hmi:scdecpt5 = 0
hmi:sclabel6 = CH_R ;Numero di pezzi rimanenti (Remain)
hmi:scdecpt6 = 0
hmi:sclabel7 = CH_C ;numero di ripetizioni del passo in corso
hmi:scdecpt7 = 0
EXIT hmi ;Uscita da qualsiasi stato hmi
gwComDisplay = 0
ENDIF
;-----------------------------------
;-----------------------------------
;Comando impostazione visualizzazioni per setup
IF gwComDisplay EQ VIS_SETUP
;Impostazioni HMI
hmi:leds = hmi:leds ORB LED_2
hmi:setup01 = anAvanz1:measure
hmi:setup02 = anAvanz1:pulse
hmi:setup03 = anAvanz1:tacc
hmi:setup04 = anAvanz1:tdec
hmi:setup05 = aswModiPunz[1]
hmi:setup06 = aswModiPunz[2]
hmi:setup07 = aswModiPunz[3]
hmi:setup08 = aswModiPunz[4]
hmi:setup09 = swOutToll
hmi:setup10 = swVelMinMan
hmi:setup11 = swVelMaxMan
hmi:setup12 = slRitSvolg
gwComDisplay = 0
ENDIF
;-----------------------------------
JUMP MAIN
END